import React from 'react'
import { Button, Notification } from '../../../packages'

export default function Demo6() {
  const openNotification = () => {
    Notification.open({
      message: 'Notification Title',
      description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.',
      onClick: () => { console.log('Notification Clicked!') },
      onClose: () => { console.log('Notification Closed!') },
      icon: <i className="m-icon-cry" style={{ color: '#108ee9' }} />,
    })
  }
  return (
    <Button type="primary" onClick={openNotification}> Open the notification box </Button>
  )
}